﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;
    import flash.utils.*;

    public class SAgencyRewardInfo extends IMessageBase
    {
        public var levelInfos:Dictionary;
        public var onLineInfos:Dictionary;
        public var timingInfos:Dictionary;
        public const _type:int = 15267;
        public static var _regist:SAgencyRewardInfo = new SAgencyRewardInfo(true);

        public function SAgencyRewardInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SAgencyRewardInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            DictIntIntHelper.write(param1, this.levelInfos);
            DictIntIntHelper.write(param1, this.onLineInfos);
            DictIntIntHelper.write(param1, this.timingInfos);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.levelInfos = DictIntIntHelper.read(param1);
            this.onLineInfos = DictIntIntHelper.read(param1);
            this.timingInfos = DictIntIntHelper.read(param1);
            return;
        }// end function

    }
}
